jade.content.schema
Class ConceptSchema

java.lang.Object
  |
  +--jade.content.schema.ObjectSchema
        |
        +--jade.content.schema.TermSchema
              |
              +--jade.content.schema.ConceptSchema

public class ConceptSchema
extends TermSchema

Author:
Federico Bergenti - Universita` di Parma

Field Summary
static java.lang.String BASE_NAME
           
 
Fields inherited from class jade.content.schema.TermSchema
BASE_NAME
 
Fields inherited from class jade.content.schema.ObjectSchema
MANDATORY, OPTIONAL
 
Constructor Summary
ConceptSchema(java.lang.String name)
          Creates a schema with a name.
 
Method Summary
 void add(java.lang.String name, TermSchema slotSchema)
          Adds a slot to the schema.
 void add(java.lang.String name, TermSchema slotSchema, int cardinality)
          Adds a slot to the schema.
 void addSuperSchema(ConceptSchema superClassSchema)
          Adds a superclass to this schema.
static TermSchema getBaseSchema()
          Retrieves the base schema of this schema.
 AbsObject newInstance()
          Creates a new instance.
 
Methods inherited from class jade.content.schema.ObjectSchema
addBaseSchema, addElement, addElement, getNames, getSchema, getTypeName, isAttribute, isMandatory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BASE_NAME

public static final java.lang.String BASE_NAME
Constructor Detail

ConceptSchema

public ConceptSchema(java.lang.String name)
Creates a schema with a name.
Parameters:
name -  
Method Detail

getBaseSchema

public static TermSchema getBaseSchema()
Retrieves the base schema of this schema.
Returns:
the base schema.

add

public void add(java.lang.String name,
                TermSchema slotSchema)
Adds a slot to the schema.
Parameters:
name - name of the slot.
slotSchema - schema of the slot.

add

public void add(java.lang.String name,
                TermSchema slotSchema,
                int cardinality)
Adds a slot to the schema.
Parameters:
name - name of the slot.
slotSchema - schema of the slot.
cardinality - cardinality of the slot, i.e., optional or mandatory.

addSuperSchema

public void addSuperSchema(ConceptSchema superClassSchema)
Adds a superclass to this schema.
Parameters:
superClassSchema -  

newInstance

public AbsObject newInstance()
Creates a new instance.
Overrides:
newInstance in class TermSchema
Returns:
the new instance.